﻿using System;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SpreadsheetGear;

namespace WPFWorkbookDesigner.Model.SpreadSheet
{
    public class SearchResultElement
    {
        #region fields

        private IRange range;

        #endregion
        public SearchResultElement(IRange range)
        {
            this.range = range;
        }
        public string WorkbookName
        {
            get { return range.Worksheet.Workbook.Name; }
        }

        public string WorksheetName
        {
            get { return range.Worksheet.Name; }
        }

        public string DefindedName
        {
            get { return range.Name?.Name ?? string.Empty; }
        }

        public string Value
        {
            get { return range.Value.ToString(); }
        }

        public string Formulas
        {
            get { return range.Formula; }
        }

    }

    public class ReplaceModel
    {

    }
}
